package org.hhh.org.service.impl;

import org.hhh.basic.service.impl.BaseServiceImpl;
import org.hhh.org.domain.Department;
import org.hhh.org.mapper.DepartmentMapper;
import org.hhh.org.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartmentServiceImpl extends BaseServiceImpl<Department> implements IDepartmentService {
    //基础的CRUD业务实现通过继承
    //扩展的业务实现需要自己写
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> findOneAndTwoTree() {
        return departmentMapper.findOneAndTwoTree();
    }
}
